Micron Document
🎖️GitЯра🎖️


Displaying Raw • Download

feature/map/src/commonMain/kotlin/org/meshtastic/feature/map/model/MapStyle.kt 4607c3f223b07c78d3b7e58ea46f4bb9d67b04c9 (4607c3f2) Text, 2.28 KB

T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.feature.map.model

Tff7b72import T7ee787org.jetbrains.compose.resources.StringResource
Tff7b72import T7ee787org.maplibre.compose.style.BaseStyle
Tff7b72import T7ee787org.meshtastic.core.resources.Res
Tff7b72import T7ee787org.meshtastic.core.resources.map_style_dark
Tff7b72import T7ee787org.meshtastic.core.resources.map_style_light
Tff7b72import T7ee787org.meshtastic.core.resources.map_style_osm
Tff7b72import T7ee787org.meshtastic.core.resources.map_style_road_map
Tff7b72import T7ee787org.meshtastic.core.resources.map_style_terrain

T8b949e/**
* Predefined map tile styles available in the app.
*
* Uses free tile sources that do not require API keys. All styles are vector-based and work across platforms.
*/
Tff7b72enum Tff7b72class T56d364MapStyleTb4b4b4(Tff7b72val Te6edf3labelTb4b4b4: Te6edf3StringResourceTb4b4b4, Tff7b72val Te6edf3styleUriTb4b4b4: Tffa657StringTb4b4b4) Tb4b4b4{
T8b949e/** OpenStreetMap default tiles via OpenFreeMap Liberty style. */
Te6edf3OpenStreetMapTb4b4b4(Te6edf3label Tff7b72= Te6edf3ResTb4b4b4.Te6edf3stringTb4b4b4.Te6edf3map_style_osmTb4b4b4, Te6edf3styleUri Tff7b72= Ta5d6ff"Ta5d6ffhttps://tiles.openfreemap.org/styles/libertyTa5d6ff"Tb4b4b4)Tb4b4b4,

T8b949e/** Clean, light cartographic style via OpenFreeMap Positron. */
Te6edf3LightTb4b4b4(Te6edf3label Tff7b72= Te6edf3ResTb4b4b4.Te6edf3stringTb4b4b4.Te6edf3map_style_lightTb4b4b4, Te6edf3styleUri Tff7b72= Ta5d6ff"Ta5d6ffhttps://tiles.openfreemap.org/styles/positronTa5d6ff"Tb4b4b4)Tb4b4b4,

T8b949e/** Topographic style via OpenFreeMap Bright. */
Te6edf3TerrainTb4b4b4(Te6edf3label Tff7b72= Te6edf3ResTb4b4b4.Te6edf3stringTb4b4b4.Te6edf3map_style_terrainTb4b4b4, Te6edf3styleUri Tff7b72= Ta5d6ff"Ta5d6ffhttps://tiles.openfreemap.org/styles/brightTa5d6ff"Tb4b4b4)Tb4b4b4,

T8b949e/** US road-map style via Americana. */
Te6edf3RoadMapTb4b4b4(Te6edf3label Tff7b72= Te6edf3ResTb4b4b4.Te6edf3stringTb4b4b4.Te6edf3map_style_road_mapTb4b4b4, Te6edf3styleUri Tff7b72= Ta5d6ff"Ta5d6ffhttps://americanamap.org/style.jsonTa5d6ff"Tb4b4b4)Tb4b4b4,

T8b949e/** Dark mode style via OpenFreeMap Fiord. */
Te6edf3DarkTb4b4b4(Te6edf3label Tff7b72= Te6edf3ResTb4b4b4.Te6edf3stringTb4b4b4.Te6edf3map_style_darkTb4b4b4, Te6edf3styleUri Tff7b72= Ta5d6ff"Ta5d6ffhttps://tiles.openfreemap.org/styles/fiordTa5d6ff"Tb4b4b4)Tb4b4b4,
Tb4b4b4;

Tff7b72fun Td2a8fftoBaseStyleTb4b4b4(Tb4b4b4)Tb4b4b4: Te6edf3BaseStyle Tff7b72= Te6edf3BaseStyleTb4b4b4.Te6edf3UriTb4b4b4(Te6edf3styleUriTb4b4b4)
Tb4b4b4}

Served by rngit 1.5.2 - Generated in 0.06s